package com.liumh.dubbo;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class TestController {

    @Reference
    private TestService testService;

    @GetMapping("/test")
    public String test(){
        return testService.sayHello("world!!!!");
    }
}
